package com.chzu.service.Impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.chzu.mapper.PoliticalQuotaMapper;
import com.chzu.pojo.PoliticalQuota;
import com.chzu.service.PoliticalQuotaService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author lz
 * @Version 1.0
 * @Company 滁州大健康与养老产业研究院
 * @ClassName PoliticalQuotaServiceImpl
 * @Description 入党指标的业务逻辑层
 * @Date 2022/02/10 23:06
 */
@Service
public class PoliticalQuotaServiceImpl extends ServiceImpl<PoliticalQuotaMapper, PoliticalQuota> implements PoliticalQuotaService {

    @Resource
    private PoliticalQuotaMapper politicalQuotaMapper;

    /**
     * 每学期的入党指标
     * @return
     */
    @Override
    public List<PoliticalQuota> getPoliticalQuota(String semester) {
        return politicalQuotaMapper.getPoliticalQuota(semester);
    }

    /**
     * 删除每学期的入党指标信息
     * @param id 主键id
     * @return
     */
    @Override
    public boolean deletePoliticalQuota(Long id) {
        return politicalQuotaMapper.deletePoliticalQuota(id);
    }
}
